package com.centriole.service.workflow.service;

import com.centriole.service.workflow.entity.WorkPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**操作页面service
 * @author wukai
 */
public interface WorkPageService {
	/**根据processId 和 类型 获取操作页面列表
	 * @param processId
	 * @param type
	 * @return
	 */
	public List<WorkPage> selectByProcessIdAndType(@Param("processId") String processId, @Param("type") String type);
	/**查询全部列表
	 * @return
	 */
	public List<WorkPage> select();
	/**根据ID查询
	 * @param id
	 * @return
	 */
	public WorkPage selectById(String id);
	/**新增或修改
	 * @param workPage
	 * @throws Exception
	 */
	public void insertOrEdit(WorkPage workPage) throws Exception;
	/**逻辑删除
	 * @param id
	 */
	public void logicDelete(String id);
}
